//
//  QueryFlightCell.m
//  AirTicket
//
//  Created by imac.bmw on 10-12-22.
//  Copyright 2010 aircococ. All rights reserved.
//

#import "QueryFlightCell.h"


@implementation QueryFlightCell
@synthesize paraLabel,nameLabel;
@synthesize picView;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 13, 100, 30)];
		paraLabel = [[UILabel alloc]initWithFrame:CGRectMake(140, 13, 180, 30)];
		paraLabel.textAlignment = UITextAlignmentLeft;
		//nameLabel.backgroundColor = [UIColor clearColor];
		//paraLabel.backgroundColor = [UIColor grayColor];
		
		picView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 3, 43, 42)];
		[self.contentView addSubview:picView];
		[picView release];
		
		[self.contentView addSubview:nameLabel];
		[self.contentView addSubview:paraLabel];
		
		[nameLabel release];
		[paraLabel release];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}


- (void)dealloc {
	//[nameLabel release];
	//[paraLabel release];
    [super dealloc];
}


@end
